const store = {
  namespace: 'store',

  state: {
    collapsed: false,
  },

  reducers: {
    changeLayoutCollapsed(state) {
      return {...state, collapsed: !state.collapsed}
    }
  },

  effects: {
    *changeCollapsed({ payload }, { put }) {
      yield put({
        type: 'changeLayoutCollapsed',
      })
    }
  }
}

export default store;
